<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/Small_operate.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/Small_operate.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "运营日报",
        name: "Small_operate",
        url: "/Small_operate/",
        sortName: "operateDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {
        operateDate: "",
        contrast: "",
        SnowNum: "",
        SnowAmount: "",
        skischoolNum: "",
        SkischoolAmount: "",
        InNum: "",
        GateNum: "",
        CrystalLakeAmount: "",
        SoldTickets: "",
        CrystalLakeNum: "",
        marketNum: "",
        marketAmount: "",
        coffeeNum: "",
        coffeeAmount: "",
        restaurantNum: "",
        restaurantAmount: "",
        snowgearNum: "",
        snowgearAmount: "",
        dayPrice: "",
        monthPrice: "",
        yearPrice: "",
      },
      editFormOptions: [
        [
          { title: "日期", field: "operateDate", type: "text" },
          { title: "同比", field: "contrast", type: "text" },
          { title: "际华冰雪售票数", field: "SnowNum", type: "text" },
        ],
        [
          { title: "际华冰雪销售额", field: "SnowAmount", type: "text" },
          { title: "滑雪学校售票数", field: "skischoolNum", type: "text" },
          { title: "滑雪学校销售金额", field: "SkischoolAmount", type: "text" },
        ],
        [
          { title: "冷区人数", field: "InNum", type: "text" },
          { title: "过闸人数", field: "GateNum", type: "text" },
          { title: "水晶湖销售金额", field: "CrystalLakeAmount", type: "text" },
        ],
        [
          { title: "香城滑雪馆售票数", field: "SoldTickets", type: "text" },
          { title: "水晶湖售票数", field: "CrystalLakeNum", type: "text" },
          { title: "际华万超售票数", field: "marketNum", type: "text" },
        ],
        [
          { title: "际华万超销售额", field: "marketAmount", type: "text" },
          { title: "际华咖啡售票数", field: "coffeeNum", type: "text" },
          { title: "际华咖啡销售额", field: "coffeeAmount", type: "text" },
        ],
        [
          { title: "际华味道售票数", field: "restaurantNum", type: "text" },
          { title: "际华味道销售额", field: "restaurantAmount", type: "text" },
          { title: "雪具售卖售票数", field: "snowgearNum", type: "text" },
        ],
        [
          { title: "雪具售卖销售额", field: "snowgearAmount", type: "text" },
          { title: "日营业额", field: "dayPrice", type: "text" },
          { title: "月营业额", field: "monthPrice", type: "text" },
        ],
        [{ title: "年营业额", field: "yearPrice", type: "text" }],
      ],
      searchFormFields: { SnowNum: "",operateDate:"" },
      searchFormOptions: [
        [{ title: "际华冰雪售票数", field: "SnowNum", type: "text" },{title: "日期", field: "operateDate", type: "date1"}],
      ],
      columns: [
        {
          field: "id",
          title: "id",
          type: "string",
          width: 90,
          hidden: true,
          readonly: true,
          require: true,
          align: "left",
        },
        {
          field: "operateDate",
          title: "日期",
          type: "string",
          width: 120,
          align: "left",
          sortable: true,
        },
        {
          field: "contrast",
          title: "同比",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "SnowNum",
          title: "际华冰雪售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "SnowAmount",
          title: "际华冰雪销售额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "skischoolNum",
          title: "滑雪学校售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "SkischoolAmount",
          title: "滑雪学校销售金额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "InNum",
          title: "冷区人数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "GateNum",
          title: "过闸人数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "CrystalLakeAmount",
          title: "水晶湖销售金额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "SoldTickets",
          title: "香城滑雪馆售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "CrystalLakeNum",
          title: "水晶湖售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "marketNum",
          title: "际华万超售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "marketAmount",
          title: "际华万超销售额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "coffeeNum",
          title: "际华咖啡售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "coffeeAmount",
          title: "际华咖啡销售额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "restaurantNum",
          title: "际华味道售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "restaurantAmount",
          title: "际华味道销售额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "snowgearNum",
          title: "雪具售卖售票数",
          type: "int",
          width: 120,
          align: "left",
        },
        {
          field: "snowgearAmount",
          title: "雪具售卖销售额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "dayPrice",
          title: "日营业额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "monthPrice",
          title: "月营业额",
          type: "decimal",
          width: 120,
          align: "left",
        },
        {
          field: "yearPrice",
          title: "年营业额",
          type: "decimal",
          width: 120,
          align: "left",
        },
      ],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
